import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 2,
      title: $t('page.system.title'),
    },
    name: 'System',
    path: '/system',
    children: [
      {
        name: 'User',
        path: '/system/user',
        component: () => import('#/views/system/user/index.vue'),
        meta: {
          icon: 'fa6-solid:user',
          title: $t('page.system.user'),
        },
      },
      {
        name: 'Group',
        path: '/system/group',
        component: () => import('#/views/system/group/index.vue'),
        meta: {
          icon: 'fa6-solid:users',
          title: $t('page.system.group'),
        },
      },
      {
        name: 'APIKey',
        path: '/system/api-key',
        component: () => import('#/views/system/api-key/index.vue'),
        meta: {
          icon: 'fa6-solid:key',
          title: 'API Key',
        },
      },
    ],
  },
];

export default routes;
